/**
 * 
 */
package com.primestone.cim.meterreadings.beans;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author cesar.mateus
 *
 */
@XmlAccessorType(XmlAccessType.FIELD) 
@XmlRootElement
public class Pair implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -401657564357338427L;
	private String name;
	private String value;
	
	/**
	 * 
	 */
	public Pair() {}
	
	/**
	 * @param name
	 * @param value
	 */
	public Pair(String name, String value) {
		super();
		this.name = name;
		this.value = value;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the value
	 */
	public String getValue() {
		return this.value;
	}
	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Pair [");
		if (this.name != null)
			builder.append("name=").append(this.name).append(", ");
		if (this.value != null)
			builder.append("value=").append(this.value);
		builder.append("]");
		return builder.toString();
	}
	
	
}
